
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="ot" uri="http://www.ideyatech.com/tides"%>

<td colspan="5">
<form:form commandName="establishment" id="establishment-form-${establishment.id}" action="">
	<ot:form_title isNew="${establishment.isNew}" label="label.establishment"/>
	<div class="content">	
		<spring:bind path="establishment.*">
		<c:if test="${status.error}">
			<div class='errorBox'>
				<!-- this is a hack to crud.js to handle validation messages. -->
				<c:if test="${establishment.isNew}">
				<!-- <tr id="establishment-row-new" -->
				</c:if>
				<form:errors path="*" />
            </div>
		</c:if>
		</spring:bind>
		<div class='fieldsBox'>
			<p><label for="name"><spring:message code="label.establishment.name" />: </label>
	<form:input path="name" maxlength="20"  /> <sup class="required">*</sup></p>

			<p><label for="taxIDNumber"><spring:message code="label.establishment.taxIDNumber" />: </label>
	<form:input path="taxIDNumber" maxlength="20"  /> <sup class="required">*</sup></p>

			<p><label for="address"><spring:message code="label.establishment.address" />: </label>
	<form:input path="address" maxlength="20"  /> <sup class="required">*</sup></p>

			<p><label for="municipality"><spring:message code="label.establishment.municipality" />: </label>
	<form:input path="municipality" maxlength="20"  /> <sup class="required">*</sup></p>

		</div>
		<div class="requiredInfo">
			<sup class="required">*</sup> Indicates required field.
		</div>
				<div class="button">
		  	<ot:submit_button id="${establishment.id}" page="establishment.jspx" formName="establishment-form-${establishment.id}" prefix="establishment"/>
  			<ot:cancel_button id="${establishment.id}" page="establishment.jspx" prefix="establishment"/>
		</div>
	</div>
</form:form>
</td> 